
<script type="text/javascript" id="editorScriptTag" charset="utf-8" src="/static/ueditor/ueditor.config.js"></script>
<script type="text/javascript" id="configScriptTag" charset="utf-8" src="/static/ueditor/ueditor.all.min.js"> </script>
<script type="text/javascript" charset="utf-8" src="/static/ueditor/lang/zh-cn/zh-cn.js"></script>
<script>
    // var editor1 = window.UE.getEditor('content', {
    //     zIndex: 1000,
    //     initialFrameHeight: 300,
    //     initialFrameWidth: "99%"
    // })
    window.UE.Editor.prototype._bkGetActionUrl = UE.Editor.prototype.getActionUrl;
    window.UE.Editor.prototype.getActionUrl = function(action) {
        if (action === 'uploadimage' || action === 'uploadfile' || action === 'uploadvideo') {
            return '/admin/uploadify/ueUpload';  //此处改需要把图片上传到哪个Action（Controller）中  || action==='uploadscrawl'
        } else if (action === 'listimage') {
            return '/admin/uploadify/ueListImage?type=image'
        } else if (action === 'listfile') {
            return '/admin/uploadify/ueListImage?type=file'
        } else if (action === 'catchimage') {
            return '/admin/uploadify/ueCatchImage'
        }  else {
            return window.UE.Editor.prototype._bkGetActionUrl.call(this, action);
        }
    }
</script>